/**
 * 
 */
package sk.gtug.googleek.client.view;

import sk.gtug.googleek.client.presenter.HomePresenter.HomeDisplay;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author ladislav.gazo
 */
public class HomePage extends Composite implements HomeDisplay  {

	private static HomePageUiBinder uiBinder = GWT
			.create(HomePageUiBinder.class);

	interface HomePageUiBinder extends UiBinder<Widget, HomePage> {
	}

	@UiField
	FlowPanel header;
	@UiField
	FlowPanel left;
	@UiField
	FlowPanel center;
	@UiField
	FlowPanel right;
	@UiField
	FlowPanel footer;

	public HomePage() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public AcceptsOneWidget getLeft() {
		return new SimpleDisplayWrapper(left);
	}

}
